#ifndef CUSTOMTITLEBAR_H
#define CUSTOMTITLEBAR_H

#include <QWidget>
#include <QPushButton>

class CustomTitleBar : public QWidget
{
    Q_OBJECT
public:
    explicit CustomTitleBar(QWidget *parent = nullptr, bool is_max = true);

public slots:
    void OnMax();
    void OnMin();
    void OnClose();
    void OnNormal();

signals:

private:
    QPushButton * m_closeWindow;
    QPushButton * m_maxWindow;
    QPushButton * m_minWindow;
    QPushButton * m_normalWindow;

    QWidget * m_parent;

    bool m_is_max;

};

#endif // CUSTOMTITLEBAR_H
